package com.wosai.register.repository;

import java.util.List;

import com.wosai.register.model.OrderItem;

public interface OrderItemRepository {
    List<OrderItem> findByOrderId(String merchantId, String branchId, String terminalId, String orderId);
    List<OrderItem> findByTerminal(String merchantId, String branchId, String terminalId, int offset, int size);
    
    List<String> insertBatch(List<OrderItem> orderItems);
    List<String> updateBatch(List<OrderItem> orderItems);
    
    void deleteByOrder(String merchantId, String branchId, String terminalId, String orderId);
    void deleteByTerminal(String merchantId, String branchId, String terminalId);
    
}
